package cn.iocoder.yudao.module.trade.api;

import cn.iocoder.yudao.module.trade.api.tradedelivery.TradeOrderDeliveryApi;
import cn.iocoder.yudao.module.trade.api.tradedelivery.dto.TradeOrderDeliveryDTO;
import cn.iocoder.yudao.module.trade.service.order.TradeOrderDeliveryService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class TradeOrderDeliveryApiImpl implements TradeOrderDeliveryApi {
    @Resource
    private TradeOrderDeliveryService tradeOrderDeliveryService;
    @Override
    public TradeOrderDeliveryDTO queryByWithdrawId(Long id) {
        return tradeOrderDeliveryService.queryByWithdrawId(id);
    }

    @Override
    public void createPickUpDelivery(Long userId, Long id, Integer deliveryType, Long pickUpStoreId, Long addressId, Long pickupInfoId) {
        tradeOrderDeliveryService.createPickUpDelivery(userId, id, deliveryType, pickUpStoreId, addressId, pickupInfoId);
    }
}
